package com.tedu.cooshark.dao;

import com.tedu.cooshark.entity.Banner;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface BannerMapper {
    @Select("select * from banner")
    List<Banner> seletAll();
    @Insert("insert into banner values (null,#{banner.url},#{banner.bannername})")
    int insert(@Param("banner") Banner banner);
    int deleteById(@Param("banner") Banner banner);
    int updateBanne(@Param("banner") Banner banner);
}
